package edu.purdue.cs.ds.vss;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;

/**
 * The recover message used to initiate secret recovery
 * @author jwallrab
 *
 */
public class RecoverMessage implements Serializable{

	/**
	 * For the compiler
	 */
	private static final long serialVersionUID = 8078712113951263261L;
	private ArrayList<BigInteger> a;
	public String destination;
	public String source;
	private byte[] signature = null;
	private boolean sigValid = false;
	
	
	public RecoverMessage(ArrayList<BigInteger> ap){
		a = ap;
	}
	
	public ArrayList<BigInteger> getA(){
		return a;
	}
	
	public void setSignature(byte[] s){
		signature = s;
	}
	
	public byte[] getSignature(){
		return signature;
	}
	
	public void setValidSig(boolean b){
		sigValid = b;
	}
	
	public boolean getSigValid(){
		return sigValid;
	}
}
